package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.goods.dto.GoodsOriginDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 原始商品服务
 *
 * @author wangbing
 * @version 1.0, 2018/8/8
 */
@Deprecated
@FeignClient(name = "ms-mod-goods", path = "/goods/origin")
public interface GoodsOriginService {

    /**
     * 获取指定商品信息
     *
     * @param goodsId 原始商品id
     * @return 商品信息
     */
    @GetMapping("{goods_id}")
    ApiResult<GoodsOriginDto> getGoods(@PathVariable("goods_id") String goodsId);
}
